package cn.task;

import com.iceking.dynamicweb.TaskProcessor;
import net.sf.json.JSONObject;

/**
 * @author wyj
 * @date 2019/5/17
 * @time 下午1:08
 */
public class Admin  extends TaskProcessor {
    /**
     * 访问管理员页面请求转发
     */
    public void admin() throws  Exception{
        toJsp("WEB-INF/admin.html");
    }
    public void  sign() throws  Exception{
        String username = getParam("username");
        String password = getParam("password");
        System.out.println(username+password);
        JSONObject json=new JSONObject();
        json.put("success","success");
        toJson(json.toString());

    }
}
